package com.zhang.pojo;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("users")
public class Users {

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Excel(name = "用户名")
    private String username;
    @Excel(name = "工资")
    private String salary;
    @Excel(name = "年龄")
    private String age;
    @Excel(name = "性别")
    private String sex;

    private int nationId;

    @TableField(exist = false)
    @ExcelEntity(name = "民族")
    private Nation nation;

}












